﻿var mainModule = angular.module('app1', ["lib", "ui.bootstrap", "ngRoute", "ngSanitize"]);
mainModule.config(['$routeProvider',
  function ($routeProvider) {
      $routeProvider.
        when('/article/:articleID', {
            template: $("#articleEditTemplate").html(),
            controller: 'articleEditCtrl'
        }).
        when('/sitems/:articleID', {
            template: $("#simpleListItemsTemplate").html(),
            controller: 'simpleListCtrl'
        }).
        when('/titems/:articleID', {
            template: $("#tabularItemsTemplate").html(),
            controller: 'tabularListCtrl'
        }).
        when('/empty', {
            template: ""
        }).
        otherwise({
            redirectTo: '/'
        });
  }]);